<?php if (Yii::app()->user->isAdmin): ?>
<?php
$this->beginWidget('bootstrap.widgets.TbBox', array(
	'title' => '新建项目',
	'headerIcon' => 'icon-plus',
));
?>
<form class="form-inline" action="<?php echo $this->createUrl('project/create'); ?>" method="get">
	<span class="span6"><label class="inline">项目名称：<input type="text" class="input-large" placeholder="输入项目名" name="name"></label></span>
	<span class="span4"><label class="inline">字段数：<input type="text" class="input-small" name="nf" value="3"></label></span>
	<span class="span2"><button type="submit" class="btn">快速创建</button></span>
</form>
<?php $this->endWidget(); ?>
<?php endif; ?>
